package com.x.aoki.order.openfeign.hystrix.service;

import org.springframework.stereotype.Component;

/**
 * 基于 Feign 和 Hystrix 的全局降级服务配置
 * @author caoy
 * @date 2025-02-17 16:57:37
 */
@Component
public class PaymentFeignHystrixServiceImpl implements PaymentFeignHystrixService{
    @Override
    public String paymentInfo_OK(Integer id) {
        return "OK-OK-OK的降级服务方法";
    }

    @Override
    public String paymentInfo_Timeout(Integer id) {
        return "Timeout-Timeout-Timeout的降级服务方法";
    }

    @Override
    public String paymentCircuitBreaker(Integer id) {
        return "消费者端的熔断服务处理。。。。。";
    }
}
